#!/bin/bash

# Hbase performance test for version attribute
# @author dino.keco
# @email dino.keco@gmail.com
# @date 2012.07.12

versions=( 1 2 3 4 5 )
cf_number=1
qf_number=100
table_name=v_table
num_of_mappers=2
records_per_mapper=1

for version in "${versions[@]}"
do
# run hadoop map reduce job
hadoop jar hbase-showcase-1.0.jar ba.keco.hbase.versions.MapReduceTest -Dhbase.showcase.cf.number=${cf_number} -Dhbase.showcase.qf.number=${qf_number} -Dhbase.showcase.table.name=${table_name} -Dhbase.showcase.input.records=${records_per_mapper} -Dhbase.showcase.mappers=${num_of_mappers} -Dhbase.showcase.versions=$version

# check table size
hadoop fs -du /hbase/${table_name}
done
